const path = require('path');
const express = require('express');


//构建
const SchoolRouter = express.Router();

//引入控制器
const SchoolController = require(path.join(__dirname,"../controllers/SchoolController"));


//主页面
SchoolRouter.get('/schoolList',SchoolController.schoolList);

//添加
SchoolRouter.get('/schoolAdd',SchoolController.schoolAdd);

//添加提交
SchoolRouter.post('/schoolAdd',SchoolController.schoolAddForm);

// 学校删除页面
SchoolRouter.get('/schoolDelete',SchoolController.schoolDelete);

module.exports = SchoolRouter;